package com.example.aloy.fragment.first

import com.example.aloy.fragment.second.BannerFragment
import com.example.aloy.fragment.second.EnterpriseFragment
import com.example.aloy.fragment.second.HouseFragment
import com.example.aloy.fragment.second.VehicleFragment


class HomeFragment : TopNavFragment() {
    private val houseFragment by lazy { HouseFragment() }
    private val enterpriseFragment by lazy { EnterpriseFragment() }
    private val vehicleFragment by lazy { VehicleFragment() }

    override fun getTabTitleList(): Array<String> {
        return arrayOf("house", "enterprise", "vehicle")
    }

    override fun getTabFragmentList(): ArrayList<BannerFragment> {
        val fragmentList = ArrayList<BannerFragment>()
        return fragmentList.apply {
            add(houseFragment)
            add(enterpriseFragment)
            add(vehicleFragment)
        }

    }
}
